package com.blobfish.fiction.book.dto;

import com.blobfish.fiction.common.base.model.BaseEntityDto;

/**
 * 小说查询/展示dto
 *
 * @author huangbo
 */
public class BookDto extends BaseEntityDto {
    private static final long serialVersionUID = 1L;
    /**
     * 小说名称
     */
    private String name;
    /**
     * 作者名称
     */
    private String author;
    /**
     * 小说编号
     */
    private String bookNo;
    /**
     * 最新章节
     */
    private String latestChapters;
    /**
     * 状态
     */
    private String state;

    public BookDto(){}

    public BookDto(String name, String author, String bookNo, String state) {
        this.name = name;
        this.author = author;
        this.bookNo = bookNo;
        this.state = state;
    }

    public BookDto(String name, String author, String bookNo, String state, String latestChapters) {
        this.name = name;
        this.author = author;
        this.bookNo = bookNo;
        this.state = state;
        this.latestChapters = latestChapters;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getBookNo() {
        return bookNo;
    }

    public void setBookNo(String bookNo) {
        this.bookNo = bookNo;
    }

    public String getLatestChapters() {
        return latestChapters;
    }

    public void setLatestChapters(String latestChapters) {
        this.latestChapters = latestChapters;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "BookDto{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", bookNo='" + bookNo + '\'' +
                ", latestChapters='" + latestChapters + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
